#include<iostream>
#include<cmath>
#include<iomanip>

int main()
{
	using namespace std;

	int a, b, c, d = 0;

	bool prime;
	for (a = 101; a <= 200; a = a + 2)
	{
		prime = true;
		b = int(sqrt(a));
		for (c = 2; c <= b; c++)
			if (a%c == 0)
			{
				prime = false;
				break;

			}
		if (prime)
		{
			cout << setw(5) << a;
			b = b + 1;
		}
		if (b % 10 == 0)
			cout << endl;
	}

	return 0;

}
